
// 引入状态
import usePerson from '../store/person.js'
import useUser from '../store/user.js'


// 导出一个 组件 的对象
export default {
  template: `
    关于我们：<br>
    <el-button type="primary" @click="person.ageAdd">改变状态</el-button><br>
    状态：{{person.person}}
    <hr>
    {{user}}

  `,
  setup(props) {
    const person = usePerson()
    const user = useUser()

    console.log('person:', person)
    console.log('user:', user)

    return {
      person,
      user
    }
  }
}